package com.example.demo.service.serviceImpl;

import com.example.demo.dao.LiveRecordsDao;
import com.example.demo.entity.LiveRecords;
import com.example.demo.service.LiveRecordsService;
import com.example.demo.util.Result;
import com.example.demo.util.ResultSubmit;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * (LiveRecords)表服务实现类
 *
 * @author makejava
 * @since 2025-04-22 14:35:15
 */
@Service
public class LiveRecordsServiceImpl implements LiveRecordsService {
    @Resource
    private LiveRecordsDao dao;


    @Override
    public Result queryAll(LiveRecords liveRecords) {
        return ResultSubmit.success(dao.queryAll(liveRecords));
    }

    @Override
    public int insert(LiveRecords liveRecords) {
        return dao.insert(liveRecords);
    }
}
